import { ModuleWithProviders } from "@angular/core"
import { Routes, RouterModule } from '@angular/router';


export const routes: Routes = [
  {
    path: 'car-info',
    loadChildren: 'app/+car/+car-info/car-info.module#CarInfoModule'
  },
  {
    path: 'car-path',
    loadChildren: 'app/+car/+car-path/car-path.module#CarPathModule',

  },
  {
    path: 'history-query',
    loadChildren: 'app/+car/+history-query/history-query.module#HistoryQueryModule',
  },
  {
    path: 'weightMonitor',
    loadChildren: 'app/+car/+weightMonitor/weightMonitor.module#WeightMonitorModule',
  },
  {
    path: 'weightMapped',
    loadChildren: 'app/+car/+weightMapped/weightMapped.module#WeightMappedModule',
  },
  {
    path: 'device-status',
    loadChildren: 'app/+car/+device-status/device-status.module#DeviceStatusModule',
  },
];

export const routing = RouterModule.forChild(routes);
